package com.lzy.crm.service;

import java.util.List;

import com.lzy.crm.base.page.PageQuery;
import com.lzy.crm.base.service.BaseService;
import com.lzy.crm.dao.criteria.TradeFlowCriteria;
import com.lzy.crm.domain.TradeFlow;
import com.lzy.crm.domain.User;
import com.lzy.crm.vo.TradeFlowVo;

public interface TradeFlowService  extends  BaseService<TradeFlow, TradeFlowCriteria> {
	
	/**
	 * 查询流水管理
	 * @param gameUserId
	 * @param phone
	 * @param email
	 * @return
	 */
	public List<TradeFlowVo> getTradeFlowList(String gameUserId,String status,PageQuery pageQuery );

	
	/**
	 * 
	 * @param user 登录管理员
	 * @param userId  代理商ID
	 * @param amount  打款金额
	 * @param bankCardId   打款银行卡
	 * @param remark  备注
	 * @return
	 */
	public int remitTrade(User user, Integer userId,double amount, Integer bankCardId ,String remark)throws Exception;
	
	/**
	 * 查询用户红包记录
	 * @param userId
	 * @param gameId
	 * @return
	 */
	public Double getTradeFlowTotal(Integer userId, String gameId);
	
	
	/**
	 * 查看今天是否以提现
	 * @return
	 */
	public List<TradeFlow> getTradeFlow(Integer uid,String startDate,String endDate);
	
	
	/**
	 * 查看处理中的订单
	 * @return
	 */
	public List<TradeFlow> getTradeFlowByStatus(String status ,String startDate,String endDate);
	
	
}
